import sympy

x = sympy.Symbol('x')
a = -1
b = 1
f = x
abs_f = sympy.Abs(f)

integral_f = sympy.integrate(f, (x, a, b))
integral_abs_f = sympy.integrate(abs_f, (x, a, b))

print("∫ from {} to {} of {} dx = {}".format(a, b, f, integral_f))
print("∫ from {} to {} of |{}| dx = {}".format(a, b, f, integral_abs_f))
print("Is |∫ from {} to {} of {} dx| <= ∫ from {} to {} of |{}| dx? {}".format(a, b, f, a, b, f, abs(integral_f) <= integral_abs_f))